package com.platform.api.film.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.platform.api.bzproject.model.BzAllWallpaper;
import com.platform.api.film.model.FilmPlayRecord;
import com.platform.api.film.vo.PlayVo;

import java.util.List;


/**
 * @author guoyunfei
 */
public interface FilmPlayRecordService extends IService<FilmPlayRecord> {

    List<FilmPlayRecord> getListByFilmId(Long filmId);

    List<Long> getPlayIds(Long filmId);

    boolean addOrUpdate(Long resourceId);

    FilmPlayRecord getByComWhere(Long filmId,Long resourceId);

    FilmPlayRecord getLastRecord(Long filmId);

    IPage<PlayVo> filmPlayRecordPage(Page<BzAllWallpaper> page);
}
